const { list } = require('./data/consume-detail')
const base = '/operation'
module.exports = [{
  url: `${base}/consumeDetails/excel`,
  type: `get`,
  response: config => {
    const { orgUnitId, roomId, start, end } = config.query
    return { success: false, message: '收到请求,orgUnitId=' + orgUnitId + ',roomId=' + roomId + ',start=' + start + ',end' + end + ',请部署服务测试' }
  }
}, {
  url: `${base}/consumeDetails`,
  type: 'get',
  response: config => {
    const { orgUnitId, roomId } = config.query
    return list(orgUnitId, roomId)
  }
}]
